<template>
  <h1>Welcome to VUE3</h1>
  <h2>{{name}}</h2>
  <h2>{{age}}</h2>
  <button @click="showName">showName</button>
</template>

<script>

export default {
  name: 'App',
  setup() {
    let name = 'zs';
    let age = 12;

    function showName() {
      alert(name)
    }
    return {
      name,
      age,
      showName
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
